<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'transaksi-form',
	'enableAjaxValidation'=>false,
)); ?>
<?php $idDetailTravel = $_GET['idDetailTravel'];?>
	<p class="note">Baris dengan tanda <span class="required">*</span> wajib diisi.</p>

	<?php echo $form->errorSummary($model,$model2); ?>
<?php /*
	<div class="row">
		<?php echo $form->labelEx($model,'ID_TRANSAKSI'); ?>
		<?php echo $form->textField($model,'ID_TRANSAKSI'); ?>
		<?php echo $form->error($model,'ID_TRANSAKSI'); ?>
	</div>
*/
?>
	<div class="row">
		<?php echo $form->labelEx($model2,'NAMA_RESERVATOR'); ?>
		<?php echo $form->textField($model2,'NAMA_RESERVATOR'); ?>
		<?php echo $form->error($model2,'NAMA_RESERVATOR'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model2,'EMAIL_RESERVATOR'); ?>
		<?php echo $form->textField($model2,'EMAIL_RESERVATOR'); ?>
		<?php echo $form->error($model2,'EMAIL_RESERVATOR'); ?>
	</div>
    
    	<div class="row">
		<?php echo $form->labelEx($model2,'ALAMAT_RESERVATOR'); ?>
		<?php echo $form->textArea($model2,'ALAMAT_RESERVATOR',array('rows'=>5,'cols'=>30)); ?>
		<?php echo $form->error($model2,'ALAMAT_RESERVATOR'); ?>
	</div>
    
       <div class="row">
		<?php echo $form->labelEx($model2,'NO_HAPE_RESERVATOR'); ?>
		<?php echo $form->textField($model2,'NO_HAPE_RESERVATOR'); ?>
		<?php echo $form->error($model2,'NO_HAPE_RESERVATOR'); ?>
	</div>
    
    <div class="row">
		<?php echo $form->labelEx($model,'ID_DETAIL_TRAVEL'); ?>
		<?php echo $form->textField($model,'ID_DETAIL_TRAVEL', array('value'=> $idDetailTravel, 'disabled'=>'disabled')); ?>
		<?php echo $form->error($model,'ID_DETAIL_TRAVEL'); ?>
	</div>
    
	<div class="row">
		<?php echo $form->labelEx($model,'TGL_TRANSAKSI'); ?>
		<?php echo $form->textField($model,'TGL_TRANSAKSI', array('value'=>date('Y-m-d'), 'disabled'=>'disabled')); ?>
		<?php echo $form->error($model,'TGL_TRANSAKSI'); ?>
       
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'JAM_TRANSAKSI'); ?> 
		<?php echo $form->textField($model,'JAM_TRANSAKSI'); ?>
		<?php echo $form->error($model,'JAM_TRANSAKSI'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'JUMLAH_PENUMPANG'); ?>
		<?php echo $form->textField($model,'JUMLAH_PENUMPANG'); ?>
		<?php echo $form->error($model,'JUMLAH_PENUMPANG'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->